﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartCity.ProcessEngine.Infrastructure.Extention
{
    /// <summary>
    /// 字符串扩展类
    /// </summary>
    public static class StringExtention
    {
        /// <summary>
        /// 判断字符串是否非空
        /// </summary>
        /// <param name="str">要判断的字符串</param>
        /// <returns>返回是否非空 true:不为空 false:空</returns>
        public static bool IsNotNull(this string str) {
            return !string.IsNullOrEmpty(str);   
        }
    }
}
